package IO;

import java.io.File;

public class Demo7 {
    public static void main(String[] args) {
        File srcFile=new File("./abc1234/def");
        File destFile=new File("./");
        boolean ok=srcFile.renameTo(destFile);  //修改了目录名称
        System.out.println(ok);
    }
}
